Extra newline no longer rendered at the end of a code block#507
Extra newline no longer rendered at the end of a code block#507ajaybhargavb merged 1 commit intodevfrom
Conversation
There was a problem hiding this comment.
Add @{ } <html>\r\n variation to ensure that the end newline isn't ignored.
|
⌚ |
dfd3072 to
743df7a
Compare
|
Updated. |
There was a problem hiding this comment.
Shouldn't you always complete the block here whether it's nested or not?
There was a problem hiding this comment.
In the nested situation we're not nulling out the SpanKind.Code's ChunkGenerator. I think this should be fine but we should validate with debugging (make sure not excess whitespace is highlighted) once a WTE is produced.
There was a problem hiding this comment.
Hmm. The name is misleading here. This CompleteBlock does nothing here other than EnsureCurrent and PutCurrentBack. Removing it affects no tests. I am thinking we should remove it completely.
|
⌚ |
|
Updated. |
There was a problem hiding this comment.
Few more tests
@{\r\n} \t\r\n<html>@{\r\n@if(true){\r\n} <input> }@{\r\n@if(true){\r\n} \r\n<input> \r\n}<html>
|
⌚ |
|
Updated. |
|
|
7aa7d84 to
5ef10af
Compare
- #485 - Using a flag to consume whitespace and newline at the end of a verbatim block - Added tests to validate nested blocks
5ef10af to
e2881b0
Compare
Issue - #485
This fixes the issue with the first example in #485 (comment).
The second example no longer seems to be an issue.
I'm trying various scenarios to see if that issue exists and also to see if this change broke something else. (All tests passing other than the ones updated here)
@NTaylorMullen @dougbu